﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Genealogy_Builder
{
    public class Person
    {
        public static int ID = 0;

        public int pid;
        public string name;
        public Place lives_in;
        public Place from;
        public DateTime birth;
        public DateTime death;

        public Person(int id, string nm, Place lives, Place frm, DateTime brth, DateTime dth)
        {
            pid = id;
            name = nm;
            lives_in = lives;
            from = frm;
            birth = brth;
            death = dth;
        }
        public Person(string nm, Place lives, Place frm, DateTime brth, DateTime dth)
        {
            pid = ID++;
            name = nm;
            lives_in = lives;
            from = frm;
            birth = brth;
            death = dth;
        }

        public override string ToString()
        {
            return (name);
        }
    }
}
